package com.brsya.movie.contract;

import com.brsya.base.base.BaseView;
import com.brsya.base.bean.BaseListBean;
import com.brsya.base.bean.BaseObjectBean;
import com.brsya.base.bean.HomeTabBean;

import java.util.List;
import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/7/5  8:49
 * Description:
 * 首页
 */
public interface HomeContract {
    interface Model{

        Observable<BaseObjectBean<HomeTabBean>> getHomeTabData(Map<String, Object> par);
    }

    interface View extends BaseView{

        /**
         * 获取到Tab数据
         * @param homeTabBeans tab数据
         */
        void showTabData(HomeTabBean homeTabBeans);

        /**
         * 获取Tab数据失败
         */
        void TabDataError();

    }

    interface Presenter{
        /**
         * 获取首页tab数据
         */
        void getHomeTab();
    }
}
